package jobs;

import org.apache.log4j.Logger;

import play.jobs.Job;
import play.jobs.OnApplicationStart;
import play.test.Fixtures;

@OnApplicationStart
public class LoadDataJob extends Job {
	Logger log = Logger.getLogger(LoadDataJob.class);
	@Override
	public void doJob() throws Exception {
		Fixtures.deleteAll();
		Fixtures.load("data.yml");
		log.info("Data inserted!");
	}
}
